<template>
  <svg
    class="icon-svg"
    v-on="$listeners"
    :width="width"
    :height="height"
    aria-hidden="true">
    <use :xlink:href="`#icon-${name}`" />
  </svg>
</template>

<script>
  export default {
    name: 'icon-svg',
    props: {
      name: {
        type: String,
        required: true
      },
      width: {
        type: String
      },
      height: {
        type: String
      }
    },
    computed: {
    }
  }
</script>
<style scoped>
  .icon-svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
  }
</style>
